//
//  CImageSelector.m
//  HCHK_iphone
//
//  Created by yilong zhang on 12-2-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "CImageSelector.h"


@implementation CImageSelector

@synthesize m_SelectorView;
@synthesize m_SelectorBgView;
@synthesize m_SelectorBgImage;
@synthesize m_SelectorTitle;

@synthesize m_AlbumBtn;
@synthesize m_CameraBtn;
@synthesize m_DraftBtn;
@synthesize m_CancelBtn;

@synthesize m_Action;
@synthesize m_Target;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

-(IBAction)OnButtonDown:(UIButton*)sender
{
    NSNumber *index = [NSNumber numberWithShort:sender.tag];
    [m_Target performSelector:m_Action withObject:index];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
